﻿using NLua;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace NLuaBenchmarkDotNetTest
{
    public class LuaBinder
    {
        public void Bind(Lua lua)
        {
            lua.RegisterFunction("Max", typeof(MathUtils).GetMethod("Max"));
            lua.RegisterFunction("Min", typeof(MathUtils).GetMethod("Min"));
            lua.RegisterFunction("Mean", typeof(MathUtils).GetMethod("Mean"));
            lua.RegisterFunction("Median", typeof(MathUtils).GetMethod("Median"));
            lua.RegisterFunction("At", typeof(MathUtils).GetMethod("At"));

        }
    }

}
